package bill

import (
	"crmeb-common/global"
	"math/big"
)

// PlatformMonthStatement 平台月帐单表
type PlatformMonthStatement struct {
	global.BaseModel
	OrderPayAmount big.Float `json:"orderPayAmount" gorm:"column=order_pay_amount;comment:订单支付总金额"`

	TotalOrderNum int32 `json:"totalOrderNum" gorm:"column=total_order_num;comment:订单支付笔数"`

	HandlingFee big.Float `json:"handlingFee" gorm:"column=handling_fee;comment:月手续费收入"`

	MerchantTransferAmount big.Float `json:"merchantTransferAmount" gorm:"column=merchant_transfer_amount;comment:商户分账金额"`

	MerchantTransferNum int32 `json:"merchantTransferNum" gorm:"column=merchant_transfer_num;comment:商户分账笔数"`

	FirstBrokerage big.Float `json:"firstBrokerage" gorm:"column=first_brokerage;comment:一级佣金金额"`

	SecondBrokerage big.Float `json:"secondBrokerage" gorm:"column=second_brokerage;comment:二级佣金金额"`

	IntegralPrice big.Float `json:"integralPrice" gorm:"column=integral_price;comment:订单积分抵扣金额"`

	PayoutAmount big.Float `json:"payoutAmount" gorm:"column=payout_amount;comment:支出总金额"`

	PayoutNum int32 `json:"payoutNum" gorm:"column=payout_num;comment:支出笔数"`

	RefundAmount big.Float `json:"refundAmount" gorm:"column=refund_amount;comment:平台退款金额"`

	RefundReplaceBrokerage big.Float `json:"refundReplaceBrokerage" gorm:"column=refund_replace_brokerage;comment:平台代扣佣金金额"`

	RefundReplaceIntegralPrice big.Float `json:"refundReplaceIntegralPrice" gorm:"column=refund_replace_integral_price;comment:退款平台积分抵扣金额"`

	RefundNum int32 `json:"refundNum" gorm:"column=refund_num;comment:退款笔数"`

	RechargeNum int32 `json:"rechargeNum" gorm:"column=recharge_num;comment:充值笔数"`

	RechargeAmount big.Float `json:"rechargeAmount" gorm:"column=recharge_amount;comment:充值金额"`

	IncomeExpenditure big.Float `json:"incomeExpenditure" gorm:"column=income_expenditure;comment:平台月收支"`

	DataDate string `json:"dataDate" gorm:"column=data_date;comment:日期：年-月"`

	PlatCouponPrice big.Float `json:"platCouponPrice" gorm:"column=plat_coupon_price;comment:平台优惠券补贴金额"`

	OrderRefundPrice big.Float `json:"orderRefundPrice" gorm:"column=order_refund_price;comment:订单实际退款金额"`

	RefundPlatCouponPrice big.Float `json:"refundPlatCouponPrice" gorm:"column=refund_plat_coupon_price;comment:退还平台优惠券补贴金额"`

	RefundHandlingFee big.Float `json:"refundHandlingFee" gorm:"column=refund_handling_fee;comment:退还手续费金额"`

	BrokeragePrice big.Float `json:"brokeragePrice" gorm:"column=brokerage_price;comment:分佣"`

	RefundBrokeragePrice big.Float `json:"refundBrokeragePrice" gorm:"column=refund_brokerage_price;comment:退还佣金"`

	RefundMerchantTransferAmount big.Float `json:"refundMerchantTransferAmount" gorm:"column=refund_merchant_transfer_amount;comment:退还商户分账金额"`

	FreightFee big.Float `json:"freightFee" gorm:"column=freight_fee;comment:运费金额"`

	RefundFreightFee big.Float `json:"refundFreightFee" gorm:"column=refund_freight_fee;comment:退运费金额"`
}
